#include "tls_common.h"

int do_statem_write(TCP_CONNECTION *conn, size_t size) {
	int ret_size = ksock_send(conn->sock, conn->buf, size);
	if (ret_size < 0) {
	    printk("do_statem_write error! return:%d\n", ret_size);
	}
	return ret_size;
}

int do_statem_read(TCP_CONNECTION *conn, size_t size, int flags) {
	int ret_size = ksock_recv(conn->sock, conn->buf, size, flags);
	if (ret_size < 0) {
	    printk("do_statem_read error! return:%d\n", ret_size);
	}
	return ret_size;

}
